// #ifndef VUE3
import Vue from 'vue'
import App from './App'
import { http } from './api/api.js' // 全局挂载引入，配置相关在该index.js文件里修改
import timerMixin from './common/checkToken.js';
import chenckToken from './components/CheckToken'

Vue.prototype.$http = http
Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
	...App
})
// 全局混入
app.$mount()
// #endif

// #ifdef VUE3
import App from './App'
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	app.config.globalProperties.$httpUrl = 'https://zhongtai.zhongjiaoyuntu.com:8448/digitallibrary/file/lengleng'
	//app.config.globalProperties.$httpUrlWx = 'http://61.163.243.7:9999/digitallibrary/bookExposure/lengleng/video/wx'
	app.config.globalProperties.$httpUrlWx = 'https://zhongtai.zhongjiaoyuntu.com:8448/digitallibrary/bookExposure/lengleng/video/wx'
	// app.config.globalProperties.$https = 'https://nongjiashuwu.shuzinongyue.com:8448'
	app.config.globalProperties.$https = 'http://61.163.243.13:8944'
	//app.config.globalProperties.$https = 'http://localhost:9999'
	app.config.globalProperties.$localHttp = 'http://localhost:9999'
	app.config.globalProperties.$book = '1719628518976913409'
	app.config.globalProperties.$audio = '1719628549662441474'
	app.config.globalProperties.$journal = '1719628593258037250'
	app.config.globalProperties.$vedio = '1719628572391374849'
	return {
		app
	}
}
// #endif